#include "utils.h"
#include <QCryptographicHash>
#include <QString>

QString Utils::sha256(const QString &str)
{
    QCryptographicHash hash(QCryptographicHash::Sha256);
    hash.addData(str.toUtf8());
    QByteArray result = hash.result();
    return result.toHex();
}
